package jy.game.logic;

import jy.game.components.role.JyRole;
import jy.game.tools.CommonSettings;

public class AoyiLogic {
    public static double GetAoyiBaseProbability(JyRole role) {
        double num = 1.0;
        if (CommonSettings.MOD_KEY == 1) {
            num += role.AttributesFinal.get("wuxing") / 1000.0;
        } else {
            num *= 1.0 + role.wuxing / 1000.0 * 0.2;
        }
        if (role.HasTalent("博览群书")) {
            num += 0.5;
        }
        return num;
    }
}
